
public class Sampler {
	public static final int DOZEN = 12;
	
	public static final int DIRECTION_NORTH = 1;
	public static final int DIRECTION_SOUTH = 2;
	public static final int DIRECTION_EAST = 3;
	public static final int DIRECTION_WEST = 4;
	
	enum Directions { NORTH, SOUTH, EAST, WEST };


	public static void main(String[] args) {
		String name = "Fred";	
		String anotherName = new String("Fred");
		
		name += "z";
		name = new String(name + "z");
	
		String sam = "Sam";
		String other = "Sam";
		
		String yetAnother = "";
		yetAnother += "S";
		
		
		sam += "z";
		other += "z";
		
		if(sam.equals(other)) {
			System.out.println("Strings are the same");
		}
	
		
		System.out.println(name);		
		
		Directions aDirection = Directions.NORTH;
	
		switch(aDirection) {
		case SOUTH:
			System.out.println("Heading south now");
			break;
			
		case EAST:
			System.out.println("Heading east now");
			break;
	
		case NORTH:
			System.out.println("Heading north now");
			break;
	
		case WEST:
			System.out.println("Heading west now");
			break;
	
		}	
		
		aDirection = Directions.WEST;
		
		for(Directions someDirection : Directions.values()) {
			System.out.println(someDirection);
		}
		
		int peopleOnTeam = 12;
		
		int eggs = 10;
		
		
		if(eggs == DOZEN) {
			
		}
		
		int currentDirection = DIRECTION_NORTH;
			
		switch(currentDirection) {
		case DIRECTION_SOUTH:
			System.out.println("Heading south now");
			break;
			
		case DIRECTION_EAST:
			System.out.println("Heading east now");
			break;
	
		case DIRECTION_NORTH:
			System.out.println("Heading north now");
			break;
	
		case DIRECTION_WEST:
			System.out.println("Heading west now");
			break;
	
		}

		currentDirection = 1000;

	}

}
